package com.test;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.Spinner;

public class Activity3 extends Activity2 {

		public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main2);
        
        Button Quai = (Button) findViewById(R.id.quai);
      
        
        Quai.setOnClickListener(new View.OnClickListener() {
        	public void onClick(View view) {
                Intent myIntent = new Intent(view.getContext(), Activity2.class);
                startActivityForResult(myIntent, 0);
            }

        });
        
        
        
        Spinner s = (Spinner) findViewById(R.id.spinnerxml);
	    ArrayAdapter adapter = ArrayAdapter.createFromResource(
	            this, R.array.ligne7, android.R.layout.simple_spinner_item);
	    adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
	    s.setAdapter(adapter);
        
        
    }
}